package com.xh.petdogexpert.expert.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.xh.petdogexpert.expert.dto.Disease;
import com.xh.petdogexpert.expert.dto.Symptom;

public interface SymptomMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Symptom record);
    int deleteSymptom(Symptom symptom);
    
    int addSymptom(Symptom symptom);
    int insertSelective(Symptom record);

    Symptom selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Symptom record);

    int updateByPrimaryKey(Symptom record);
    int addUpdateSymptom(Symptom symptom);
    
	List<Symptom> querySymptoms(Symptom symptom);
    
    List<Symptom> getSecondSymptoms(@Param("diseases") List<Disease> diseaseSumCf,
			@Param("symptoms") List<String> symptomIds);
    
    void addSymtomsFrency(@Param("ids") List<String> ids);

	List<Symptom> getSymptomsByKeyName(@Param("keyName") String keyName);
    
}